﻿var S = KISSY;
S.config({
    packages: [
        {
            name: "kg",
            path: "http://g.tbcdn.cn/kg/",
            charset: "utf-8",
            ignorePackageNameInUri: true
        }
    ]
});

S.use('kg/agiledialog/1.0.2/index', function (S, Agiledialog) {
    var dialogs = S.all(".iui-dialog");
    debugger;
    S.each(dialogs, function (item) {
        S.one(item).on("click", function (ev) {
            //Dialog 默认
            var dialog = new Agiledialog({
                title: '题目',
                content: S.one('.dialog-form').html(),
                onConfirm: function () { },
                onCancel: function () { }
            });
        });
    })
})

